package com.cjh.CH2;
/**
 * @author ChenJunhong
 * @date 2018/11/23
 * Description:
 * 使用实现接口的方式，有利于数据的共享。
 *
 */
public class CreateThread2 implements Runnable {
    @Override
    public void run() {
        System.out.println("CreateThread2");
    }

    public static void main(String[] args) {
        Thread thread2 = new Thread(new CreateThread2());
        thread2.start();
        thread2.stop();
    }
}
